<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%>
<%@ page import="performReservation.SMMDBBean"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.Vector"%>
<%!
	Vector<String[]> vec = new Vector<String[]>();
	String order_num = null;
	String type =null;

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Processing...</title>
</head>
<body><%
		//auth
	
				order_num = request.getParameter("num");
			
				
				if(!order_num.equals("")){
					%><jsp:useBean id="order" scope="page" class="performReservation.Orders"/><%
						order.setNumber(Integer.parseInt(order_num));
		
						//delete
						SMMDBBean pProcess = SMMDBBean.getInstance();
						boolean b = pProcess.deleteCusOrder(order);
						if(b){
							out.println("Your order has deleted");
							out.println("<a href=\"javascript:history.go(-1)\">Back</a>");
						}else{
							out.println("something wrong with server!");
							out.println("<a href=\"javascript:history.go(-1)\">Back</a>");
						}
					
				}else{
					out.println("You have to login!");
					out.println("<a href=\"javascript:history.go(-1)\">Back</a>");
				}
			
		%>
		<%
			
		%>
</body>
</html>